/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package siswa;

import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Rendra
 */
public class AppConnection {
    public void openConn() {
        try {
            Class.forName("com.mysql.jdbc.Driver").newInstance();
            App.conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/idthree", "root", "");
        } catch (SQLException | InstantiationException | IllegalAccessException | ClassNotFoundException sqlex) {
            System.err.println(sqlex);
        }
    }
}
